import request from '@/utils/request'

// 查询vip权益列表
export function listEquity(query) {
  return request({
    url: '/system/equity/list',
    method: 'get',
    params: query
  })
}

// 查询vip权益详细
export function getEquity(equityId) {
  return request({
    url: '/system/equity/' + equityId,
    method: 'get'
  })
}

// 新增vip权益
export function addEquity(data) {
  return request({
    url: '/system/equity',
    method: 'post',
    data: data
  })
}

// 新增vip权益
export function addListEquity(data) {
  return request({
    url: '/system/equity/addListEquity',
    method: 'post',
    data: data
  })
}

// 修改vip权益
export function updateEquity(data) {
  return request({
    url: '/system/equity',
    method: 'put',
    data: data
  })
}

// 删除vip权益
export function delEquity(equityId) {
  return request({
    url: '/system/equity/' + equityId,
    method: 'delete'
  })
}
